package com.machine.filling.function.main.erweima;

import com.machine.filling.base.baseMvp.IBasePresenter;
import com.machine.filling.base.baseMvp.IBaseView;
import com.machine.filling.net.ws.response.WsResCheckOrderPayState;
import com.machine.filling.net.ws.response.WsResGetErWeiMa;

/**
 * Created by Administrator on 2018/4/19 0019.
 *
 * @description
 */

public class ErWeiMaContract {
    public interface Presenter extends IBasePresenter {
        /**
         * 获取二维码(支付宝)
         */
        void getErWeiMa();

        /**
         * 循环获取支付状态
         */
        void getCyclePayState();

        /**
         * 是否停止或开始循环获取支付状态
         * @param isStop
         */
        void stopCycle(boolean isStop);


    }

    public interface View extends IBaseView<Presenter> {
        String getOrderNum();

        /**
         * 获取支付方式
         * @return
         */
        String getPayType();

        void showGetErWeiMaResultSuccess(WsResGetErWeiMa bean);

        void showGetErWeiMaResultFailed(String errorCode,String errorMsg);

        /**
         * 支付成功,展示支付结果
         */
        void showPayResSuccess( WsResCheckOrderPayState bean);
    }
}